var e = require("../../common/vendor.js"), r = require("../../api/ajax.js"), i = require("../../config/config.js"), t = require("../../uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"), 
require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"), 
require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"), 
require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"), 
require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"), 
require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"), 
require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"), 
require("../../uni_modules/u-store/js_sdk/Storage.js");

var s = {
    mixins: [ t.ZPMixin ],
    props: {
        id: {
            type: String
        }
    },
    setup: function(r) {
        var i = r.id, t = e.useStore();
        return {
            id: i,
            upInfo: function(e) {
                t.commit("showCar/upInfo", e);
            },
            showCar: t.state.showCar
        };
    },
    data: function() {
        return {
            base: i.base,
            keywords: "",
            dataList: [],
            loading: !0
        };
    },
    methods: {
        change: function(e) {
            var r = this;
            this.keywords = e, setTimeout(function() {
                r.$refs.paging.reload();
            }, 500);
        },
        queryList: function(e, i) {
            var t = this;
            r.doPostUrl("gallery.Gallery/index", {
                categroy_id: this.id,
                keywords: this.keywords,
                page: e,
                limit: i
            }).then(function(e) {
                console.log("queryList", e.data.data), t.$refs.paging.complete(e.data.data);
            });
        },
        goDetail: function(r) {
            e.index.navigateTo({
                url: "/pages/gallery/detail?id=" + r.gallery_id
            });
        }
    }
};

Array || (e.resolveComponent("uv-search") + e.resolveComponent("uv-image") + e.resolveComponent("z-paging"))(), 
Math || (function() {
    return "../../uni_modules/uv-search/components/uv-search/uv-search.js";
} + function() {
    return "../../uni_modules/uv-image/components/uv-image/uv-image.js";
} + function() {
    return "../../uni_modules/z-paging/components/z-paging/z-paging.js";
})();

var u = e._export_sfc(s, [ [ "render", function(r, i, t, s, u, n) {
    return {
        a: e.o(n.change),
        b: e.o(n.change),
        c: e.o(function(e) {
            return u.keywords = e;
        }),
        d: e.p({
            modelValue: u.keywords
        }),
        e: e.f(u.dataList, function(r, i, t) {
            return {
                a: "7117908c-2-" + t + ",7117908c-0",
                b: e.p({
                    width: "330rpx",
                    mode: "widthFix",
                    src: u.base.siteUrl + r.titlepic
                }),
                c: e.t(r.title),
                d: e.o(function(e) {
                    return n.goDetail(r);
                })
            };
        }),
        f: e.sr("paging", "7117908c-0"),
        g: e.o(n.queryList),
        h: e.o(function(e) {
            return u.dataList = e;
        }),
        i: e.p({
            modelValue: u.dataList
        })
    };
} ] ]);

wx.createPage(u);